<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Admin.AdminSearchLabs" CodeFile="AdminSearchLabs.aspx.cs" %>

<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>AdminSearchLabs</title>
    <link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
    <form id="Form1" method="post" runat="server">
        <table class="Container">
            <tr>
                <td>
                    <cc1:Header ID="header" runat="server" OnNavigate="OnHeaderNavigate" />
                    <cc1:AdminSubNavigation ID="adminSubNavigation" runat="server"></cc1:AdminSubNavigation>
                    <cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
                    <table>
                        <tr>
                            <td>
                                <table>
                                    <tr>
                                        <td align="right">
                                            Lab Name:</td>
                                        <td>
                                            <asp:TextBox ID="labName" runat="server" CssClass="DataInput"></asp:TextBox></td>
                                        <td>
                                            &nbsp;</td>
                                        <td rowspan="4" valign="top">
                                            <cc1:OrganizationSelectors ID="organizationSelectors" runat="server" />
                                        </td>
                                        <td>
                                            &nbsp;</td>
                                        <td>
                                            <asp:ImageButton ID="search" runat="server" ImageUrl="../Images/b_search_grey.gif"
                                                OnClick="OnSearch" /></td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            PI Username:</td>
                                        <td>
                                            <asp:TextBox ID="piUsername" runat="server" CssClass="DataInput"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            PI Last Name:</td>
                                        <td>
                                            <asp:TextBox ID="piLastName" runat="server" CssClass="DataInput"></asp:TextBox></td>
                                    </tr>
                                    <tr>
                                        <td align="right">
                                            PI First Name:</td>
                                        <td>
                                            <asp:TextBox ID="piFirstName" runat="server" CssClass="DataInput"></asp:TextBox></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:CustomValidator ID="searchValidator" runat="server" ErrorMessage="Please enter at least one search criteria."
                                    Font-Bold="True" OnServerValidate="OnServerValidate"></asp:CustomValidator></td>
                        </tr>
                    </table>
                    <table class="Invisible" cellspacing="10" id="dynamicTable">
                        <tr>
                            <td>
                                <cc2:ActivityIndicator ID="activityIndicator" runat="server" ContainerID="dynamicTable" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:Annunciator ID="annunciator" ContainerID="dynamicTable" runat="server"></cc2:Annunciator>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc2:PostbackGuard ID="postbackGuard" runat="server"></cc2:PostbackGuard>
                            </td>
                        </tr>
                    </table>
                    <table cellspacing="0">
                        <tr>
                            <td>
                                <asp:DataGrid ID="dataGrid" runat="server" AllowPaging="False" AllowSorting="True"
                                    AutoGenerateColumns="False" CssClass="DataGrid" OnItemCommand="OnItemCommand"
                                    OnItemCreated="OnItemCreated" OnSortCommand="OnSort" Width="100%">
                                    <HeaderStyle CssClass="DataGridHeader" />
                                    <AlternatingItemStyle CssClass="DataGridAlternatingItem" />
                                    <ItemStyle CssClass="DataGridItem" />
                                    <Columns>
                                        <asp:BoundColumn DataField="Id" Visible="False"></asp:BoundColumn>
                                        <asp:ButtonColumn ButtonType="LinkButton" CommandName="SelectLab" DataTextField="Name"
                                            HeaderText="Lab Name" SortExpression="Name"></asp:ButtonColumn>
                                        <asp:BoundColumn DataField="Organization" HeaderText="Organization"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="CreateDate" HeaderText="Create Date"></asp:BoundColumn>
                                        <asp:BoundColumn DataField="Creator" HeaderText="Creator"></asp:BoundColumn>
                                        <asp:TemplateColumn HeaderText="Delete">
                                            <ItemTemplate>
                                                <asp:CheckBox ID="deleteLab" runat="server"></asp:CheckBox>
                                            </ItemTemplate>
                                        </asp:TemplateColumn>
                                    </Columns>
                                </asp:DataGrid></td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr align="right">
                            <td align="right">
                                <asp:ImageButton ID="deleteLabs" runat="server" ImageUrl="../Images/b_delete_lab.gif"
                                    OnClick="OnDeleteLabs" />&nbsp;
                                <asp:ImageButton ID="addLab" runat="server" ImageUrl="../Images/b_add_lab.gif"></asp:ImageButton></td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
